<!--
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-05-27 19:30:11
 * @LastEditors: Silence
 * @LastEditTime: 2023-05-28 11:16:12
-->
<template>
  <div class="home">
    <div class="top">
      <div class="left">顶部导航栏</div>
      <div class="right"><router-link to="/login">退出登录</router-link></div>
    </div>
    <div class="content">
      <div class="aside">
        <ul>
          <li>
            <router-link :to="{ path: '/first', query: { id: 1 } }"
              >1</router-link
            >
          </li>
          <li><router-link to="/second?id=2">2</router-link></li>
          <li><router-link to="/third/3">3</router-link></li>
          <li><router-link to="/forth/params4?ids=query4">4</router-link></li>
        </ul>
      </div>
      <router-view></router-view>
    </div>
    <div class="bottom">底部导航栏</div>
  </div>
</template>
<script>
export default {
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
.home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .top {
    display: flex;
    justify-content: space-between;
    height: 50px;
    background-color: pink;
  }
  .content {
    flex: 1;
    display: flex;
    // justify-content: space-between;
    .aside {
      width: 100px;
      ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        height: 100%;
        li {
          flex: 1;
          padding: 10px;
          a {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            text-decoration: none;
            border: solid 3px red;
          }
          .router-link-exact-active,
          .router-link-active {
            background-color: red;
          }
        }
      }
    }
  }
  .bottom {
    height: 50px;
    background-color: pink;
  }
}
</style>
